﻿using GolSig.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace Test.GolSig.Library.GridSpecs
{

    [TestClass()]
    public class WhenCreatingGrid
    {
        [TestMethod(), ExpectedException(typeof(System.ArgumentNullException))]
        public void GivenInValidBoard_ShouldRaiseException()
        {
            Board board = null;
            Grid target = new Grid(board);
            Assert.Fail("exception expected");
        }


        [TestMethod()]
        public void GivenValidBoard_GridShouldExist()
        {
            Board board = new Board(new BoardSize(1, 1));
            Grid target = new Grid(board);
            Assert.IsNotNull(target);
        }

    }
}
